package com.thinksns.sociax.t4.android.api;

import com.thinksns.sociax.modle.CashConfig;
import com.thinksns.sociax.thinksnsbase.network.ApiHttpClient;

public interface ApiApplication {
    public static final String MOD_NAME = "Application";
    public static final String GETUSERACCOUNT = "getUserAccount";
    public static final String SETUSERACCOUNT = "setUserAccount";
    public static final String GETZBCONFIG = "getZBConfig";
    public static final String CREATEORDER = "createOrder";

    /**
     * 获取绑定帐号
     * @param listener
     */
    void getUserAccount(final ApiHttpClient.HttpRespListener<String> listener);

    /**
     * 绑定帐号
     * @param status
     * @param type
     * @param account
     * @param listener
     */
    void setUserAccount(String status,String type, String account, final ApiHttpClient.HttpRespListener<String> listener);

    /**
     * 获取全部配置
     * @param field  field 传入可筛选字段 ( 可选值 ： cash_exchange_ratio_list 提现比例 charge_ratio 充值比例 charge_description 充值描述 ),多个用‘，’(逗号)隔开
     * @param listener
     */
    void getZBConfig(String field,final ApiHttpClient.HttpRespListener<CashConfig> listener);

    /**
     * 创建提现订单
     * @param gold  提现金币
     * @param amount  对应金额
     * @param listener
     */
    void createOrder(String gold,String amount,final ApiHttpClient.HttpRespListener<String> listener);
}